﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using WebMvc.Areas.Sys.Models;
using WebMvc.Controllers;
using WebMvc.Models;

// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860

namespace WebMvc.Areas.Sys.Controllers
{
    [Area("Sys")]
    [Authorize(Roles = "super")]
    public class RoleController : BaseController<Role>
    {
        public RoleController(EFDbContext context) : base(context)
        {
        }

        public override void SetIsASC()  //可以在子类中覆盖此方法，设置isASC为false则按降序排
        {
            IsASC = true;
        }

    }
}
